package view;

import java.awt.FlowLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class NorthPanel extends JPanel {
	
	private static final long serialVersionUID = -3057821590737391191L;
	//private JTextField colorNumberTF, populationSizeTF, maxRetriesTF, mutationRateTF;
	private JButton openConfigurationButton/*, startButton, prevButton, nextButton*/;
	
	public NorthPanel() {
		setLayout(new FlowLayout());
		this.add (openConfigurationButton = new JButton ("Open"));
		/*this.add (new JLabel ("init-color-num: "));
		this.add (colorNumberTF = new JTextField(2));
		this.add (new JLabel ("pop-size: "));
		this.add (populationSizeTF = new JTextField(3));
		this.add (new JLabel ("max-retries: "));
		this.add (maxRetriesTF = new JTextField(4));
		this.add (new JLabel ("mut-rate: "));
		this.add (mutationRateTF = new JTextField(4));
		this.add (startButton = new JButton("Start!"));
		this.add (new JLabel ("Solution: "));
		this.add (prevButton = new JButton("Prev"));
		this.add (nextButton = new JButton("Next"));
		
		colorNumberTF.setEditable(false);
		populationSizeTF.setEditable(false);
		maxRetriesTF.setEditable(false);
		mutationRateTF.setEditable(false);
		prevButton.setEnabled(false);
		nextButton.setEnabled(false);*/
	}
	
	public void addOpenConfigurationActionListener (ActionListener al) {
		openConfigurationButton.addActionListener(al);
	}
	
	/*public void addStartActionListener (ActionListener al) {
		startButton.addActionListener(al);
	}
	
	public void addPrevActionListener (ActionListener al) {
		prevButton.addActionListener(al);
	}
	
	public void addNextActionListener (ActionListener al) {
		nextButton.addActionListener(al);
	}

	public JTextField getColorNumberTF() {
		return colorNumberTF;
	}

	public JTextField getPopulationSizeTF() {
		return populationSizeTF;
	}

	public JTextField getMaxRetriesTF() {
		return maxRetriesTF;
	}

	public JTextField getMutationRateTF() {
		return mutationRateTF;
	}

	public JButton getPrevButton() {
		return prevButton;
	}

	public JButton getNextButton() {
		return nextButton;
	}*/
}
